package com.tbsoft.trail.model;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * @desc 采购单实体对象
 * @author lizhenhua
 *
 */
@Entity
@Table(name = "MERGED_ORDER")
public class MergedOrder implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String description;
	private BigDecimal mergedValue;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "DESCRIPTION",length=250)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "MERGEDVALUE", precision = 18, scale = 6)
	public BigDecimal getMergedValue() {
		return mergedValue;
	}

	public void setMergedValue(BigDecimal mergedValue) {
		this.mergedValue = mergedValue;
	}

	@Override
	public String toString() {
		return "MergedOrder [description=" + description + ", mergedValue="
				+ mergedValue + "]";
	}

}
